#include<bits/stdc++.h>
using namespace std;
int main() {
    string str;
    vector<string> vec;
    while (1) {
        cin >> str;
        if (str == ".") break;
        vec.push_back(str);
    }
    if (vec.size() >= 14) cout << vec[1] << " and " << vec[13] << " are inviting you to dinner..." << endl;
    else if (vec.size() >= 2) cout << vec[1] << " is the only one for you..." << endl;
    else cout << "Momo... No one is for you ..." << endl;
    return 0;
}